package gnar.euler

class ProblemOne extends Problem{
  override def solve() = {
    printf("P1 ans: %d\n", listOfMultiples(0,1000).reduceLeft[Int](_+_))
  }
  
  def listOfMultiples(start: Int, end: Int): List[Int]= {
    for (i <- List.range(start,end) if i % 3 == 0 || i % 5 == 0) yield i 
  }
}